<!DOCTYPE html>
<html lang="zh_CN">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

</body>
<script type="text/javascript">

    var n1 = 12;
    var n2 = 34;
    var n3 = 23;

    /*使用三目求取最大数*/
    var max; // 34

    /*n1 > n2 ?  (n1 > n3) : (n2 > n3)*/

</script>

</html>
